package jaloveast1k.site.com.google.sites;

import jaloveast1k.site.com.google.sites.utils.MapLoader;
import android.content.Context;
import android.graphics.Canvas;
import android.util.AttributeSet;
import android.view.View;

public class GameMapView extends View {
	private GameCell[][] mMap;
	
	public GameMapView(Context cont, AttributeSet attrs) {
		super(cont, attrs);
		
		mMap = MapLoader.getMap(1, cont);
	}
	
	@Override
	protected void onDraw(Canvas canvas) {
		super.onDraw(canvas);
		
		for (int i = 0; i < mMap.length; i++)
		{
			for (int j = 0; j < mMap[i].length; j++)
			{
				mMap[i][j].drawOn(canvas);
			}
		}
	}
}
